<?php get_header(); ?>
	
<div class="content">
	
    <div class="page-title">

        <h4><?php _e( 'Search', 'wilson' ); ?><span class="name">"<?php echo get_search_query(); ?>"</span></h4>

    </div><!-- .page-title -->
				
    <div class="posts">

        <?php if ( have_posts() ) : ?>

            <?php while ( have_posts() ) : the_post(); ?>

                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                    <?php get_template_part( 'content', get_post_format() ); ?>						

                </div><!-- .post -->

            <?php endwhile; ?>

        <?php else : ?>

            <div class="post">

                <div class="post-inner">

                    <div class="post-content">

                        <p><?php _e( 'No results. Try again, would you kindly?', 'wilson' ); ?></p>

                        <?php get_search_form(); ?>

                    </div><!-- .post-content -->

                </div><!-- .post-inner -->

                <div class="clear"></div>

            </div><!-- .post -->

        <?php endif; ?>

    </div><!-- .posts -->

    <?php if ( $wp_query->max_num_pages > 1 ) : ?>

        <div class="post-nav archive-nav">

            <?php echo get_next_posts_link( __( '&laquo; Older<span> posts</span>', 'wilson' ) ); ?>

            <?php echo get_previous_posts_link( __( 'Newer<span> posts</span> &raquo;', 'wilson' ) ); ?>

            <div class="clear"></div>

        </div>

    <?php endif; ?>
		
<?php get_footer(); ?>